var nation = [
	"","汉族", "壮族", "满族", "回族", "苗族", "维吾尔族", "土家族", "彝族", "蒙古族", "藏族", "布依族", "侗族", "瑶族", "朝鲜族", "白族", "哈尼族",
	"哈萨克族", "黎族", "傣族", "畲族", "傈僳族", "仡佬族", "东乡族", "高山族", "拉祜族", "水族", "佤族", "纳西族", "羌族", "土族", "仫佬族", "锡伯族",
	"柯尔克孜族", "达斡尔族", "景颇族", "毛南族", "撒拉族", "布朗族", "塔吉克族", "阿昌族", "普米族", "鄂温克族", "怒族", "京族", "基诺族", "德昂族", "保安族",
	"俄罗斯族", "裕固族", "乌孜别克族", "门巴族", "鄂伦春族", "独龙族", "塔塔尔族", "赫哲族", "珞巴族"
];

var religion = [
	"","基督教", "伊斯兰教", "佛教","道教"
];
var zengzhi=["","中共党员","中共预备党员","共青团员","民革党员","民盟盟员","民建会员","民进会员","农工党党员","致公党党员","九三学社社员","台盟盟员","无党派人士","群众"]
var shengfen=["北京市 ","天津市 ","上海市 ","重庆市 ","河北省 ","山西省 ","辽宁省 ","吉林省 ","黑龙江省"," 江苏省 ","浙江省 ","安徽省 ","福建省 ","江西省 ","山东省 ","河南省 ",
"湖北省 ","湖南省 ","广东省 ","海南省 ","四川省 ","贵州省 ","云南省 ","陕西省 ","甘肃省 ","青海省 ","台湾省 ","广西壮族自治区"," 内蒙古自治区"," 西藏自治区"," 宁夏回族自治区 ",
"新疆维吾尔自治区","香港特别行政区","澳门特别行政区",]
var jiaoyu=[25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,]

window.onload = function() {
	//民族
	var nat = document.getElementById("eNationadd");
	for(var i = 0; i < nation.length; i++) {
		var option = document.createElement('option');
		option.value = nation[i];
		var txt = document.createTextNode(nation[i]);
		option.appendChild(txt);
		nat.appendChild(option);
	};
	var nat = document.getElementById("enation");
	for(var i = 0; i < nation.length; i++) {
		var option = document.createElement('option');
		option.value = nation[i];
		var txt = document.createTextNode(nation[i]);
		option.appendChild(txt);
		nat.appendChild(option);
	};
	//宗教
	var rel = document.getElementById("efaithadd");
	for(var j = 0; j < religion.length; j++) {
		var option1 = document.createElement('option');
		option1.value = j;
		var txt1 = document.createTextNode(religion[j]);
		option1.appendChild(txt1);
		rel.appendChild(option1);
	};
	var rel = document.getElementById("efaith");
	for(var j = 0; j < religion.length; j++) {
		var option1 = document.createElement('option');
		option1.value = j;
		var txt1 = document.createTextNode(religion[j]);
		option1.appendChild(txt1);
		rel.appendChild(option1);
	};
	//政治面貌
	var zeng = document.getElementById("epoliticsadd");
	for(var i = 0; i < zengzhi.length; i++) {
		var option = document.createElement('option');
		option.value = zengzhi[i];
		var txt = document.createTextNode(zengzhi[i]);
		option.appendChild(txt);
		zeng.appendChild(option);
	};
	var zeng = document.getElementById("epolitics");
	for(var i = 0; i < zengzhi.length; i++) {
		var option = document.createElement('option');
		option.value = zengzhi[i];
		var txt = document.createTextNode(zengzhi[i]);
		option.appendChild(txt);
		zeng.appendChild(option);
	};
	//教育年限
	var jiao = document.getElementById("eEducationageadd");
	for(var i = 0; i < jiaoyu.length; i++) {
		var option = document.createElement('option');
		option.value = jiaoyu[i];
		var txt = document.createTextNode(jiaoyu[i]);
		option.appendChild(txt);
		jiao.appendChild(option);
	};
	var jiao = document.getElementById("eeducationage");
	for(var i = 0; i < jiaoyu.length; i++) {
		var option = document.createElement('option');
		option.value = jiaoyu[i];
		var txt = document.createTextNode(jiaoyu[i]);
		option.appendChild(txt);
		jiao.appendChild(option);
	};
}